<?if ($this->inktype->is_logged_in()) {?>
<script type="text/javascript">
$(document).ready(function() {
var formValidator = new ValidatorClass();
formValidator.init({
  form:           "#comment_form",
  isRequired:     ['comment@textarea'],
  bindElement:    '#comment_button'
});
});
</script>
<?} else {?>
<script type="text/javascript">
$(document).ready(function() {
var formValidator = new ValidatorClass();
formValidator.init({
  form:           "#comment_form",
  isRequired:     ['comment@textarea', 'display_name'],
  bindElement:    '#comment_button'
});
});
</script>
<?}?>